import List from "../components/client/index" //List 是自己定义的名字
import { Button } from "antd";
import { useNavigate } from "react-router-dom"
const ClientManage = () => {
    const navigate = useNavigate();
    const addClient = () => {
        navigate("/home/client/add");
    }
    return (
        <>
            <h2>客户管理</h2>
            <div style={{ display: 'flex', marginBottom: '20px' }}>
                <Button type="primary" onClick={addClient} style={{ marginRight: '10px' }}>添加客户</Button>
            </div>

            <List />
        </>
    )
}

export default ClientManage;